package fr.afcepf.ai85.ent;

// Generated 21 mars 2013 17:20:56 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * InscriptionEcole generated by hbm2java
 */
@Entity
@Table(name = "inscription_ecole", catalog = "gepeto_db")
public class InscriptionEcole implements java.io.Serializable {

	private Integer idInscripEcole;
	private Ecole ecole;
	private Eleve eleve;
	private Niveauscolaire niveauscolaire;
	private Date dateDebutAnneeScolaire;
	private Date dateFinAnneeScolaire;

	public InscriptionEcole() {
	}

	public InscriptionEcole(Ecole ecole, Eleve eleve,
			Niveauscolaire niveauscolaire) {
		this.ecole = ecole;
		this.eleve = eleve;
		this.niveauscolaire = niveauscolaire;
	}

	public InscriptionEcole(Ecole ecole, Eleve eleve,
			Niveauscolaire niveauscolaire, Date dateDebutAnneeScolaire,
			Date dateFinAnneeScolaire) {
		this.ecole = ecole;
		this.eleve = eleve;
		this.niveauscolaire = niveauscolaire;
		this.dateDebutAnneeScolaire = dateDebutAnneeScolaire;
		this.dateFinAnneeScolaire = dateFinAnneeScolaire;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID_INSCRIP_ECOLE", unique = true, nullable = false)
	public Integer getIdInscripEcole() {
		return this.idInscripEcole;
	}

	public void setIdInscripEcole(Integer idInscripEcole) {
		this.idInscripEcole = idInscripEcole;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "IDENTIFIANT_ECOLE", nullable = false)
	public Ecole getEcole() {
		return this.ecole;
	}

	public void setEcole(Ecole ecole) {
		this.ecole = ecole;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_ELEVE", nullable = false)
	public Eleve getEleve() {
		return this.eleve;
	}

	public void setEleve(Eleve eleve) {
		this.eleve = eleve;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_NIVEAUSCOLAIRE", nullable = false)
	public Niveauscolaire getNiveauscolaire() {
		return this.niveauscolaire;
	}

	public void setNiveauscolaire(Niveauscolaire niveauscolaire) {
		this.niveauscolaire = niveauscolaire;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DATE_DEBUT_ANNEE_SCOLAIRE", length = 10)
	public Date getDateDebutAnneeScolaire() {
		return this.dateDebutAnneeScolaire;
	}

	public void setDateDebutAnneeScolaire(Date dateDebutAnneeScolaire) {
		this.dateDebutAnneeScolaire = dateDebutAnneeScolaire;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DATE_FIN_ANNEE_SCOLAIRE", length = 10)
	public Date getDateFinAnneeScolaire() {
		return this.dateFinAnneeScolaire;
	}

	public void setDateFinAnneeScolaire(Date dateFinAnneeScolaire) {
		this.dateFinAnneeScolaire = dateFinAnneeScolaire;
	}

}
